/*
========================================================================
 Name        : DetailContainer.h
 Author      : shitou
 Copyright   : Your copyright notice
 Description : 
========================================================================
*/
#ifndef DETAILCONTAINER_H
#define DETAILCONTAINER_H

#include <coecntrl.h>		
#include "NormalContainer.h"
#include "ThemeListItem.h"
#include "ImageConverterEngine.h"
#include "ImageControl.h"

class MEikCommandObserver;		
class CDetailContainerView;

class CDetailContainer : public CNormalContainer, public MConverterController
	{
public:
	// constructors and destructor
	CDetailContainer();
	static CDetailContainer* NewL( 
		const TRect& aRect, 
		const CCoeControl* aParent, 
		MEikCommandObserver* aCommandObserver );
	static CDetailContainer* NewLC( 
		const TRect& aRect, 
		const CCoeControl* aParent, 
		MEikCommandObserver* aCommandObserver );
	void ConstructL( 
		const TRect& aRect, 
		const CCoeControl* aParent, 
		MEikCommandObserver* aCommandObserver );
	virtual ~CDetailContainer();
	
public:
	void setThemeTypes(RPointerArray<CThemeType> aTypes);
	void InitDetailPage(CThemeListItem* aItem, const TDesC8& aImageData);
	void NotifyCompletion( TInt aErr, const TDesC& aMsg );
	
	//from base
	  void HandlePointerEventL(const TPointerEvent& aPointerEvent);
	  
public:
    CDetailContainerView* iParentView;
    
private:
    CImageConverterEngine* iImageConverter;
    CImageControl* iImgCtrl;//not delete
	};
				
#endif // DETAILCONTAINER_H
